import Vue from 'vue'
import Router from 'vue-router'
import Cft from 'cxl/c_lc/Home.vue'
import Cateory from 'cxl/cateory/Cateory.vue'
import HH from './HH';
import Lenders from 'hh/daikuan/woyao'
import Duomi from 'hh/duomi/duomi'
import Chedai from 'hh/chedai/chedai'
import Chedi from 'hh/chedi/chedi'
import Fangdi from 'hh/fangdi/fangdi'
import Gongzuo from 'hh/gongzi/gongzi'
Vue.use(Router)

export default new Router({
  routes: [
      { 
        path:'/',       //当路径是根目录时，
        redirect:'/hh'  //跳转到 /home 目录
    },
    {
      path:'/hh',
      component:HH
    },
    {
      path:'/lenders',
      component:Lenders
    },  
    {
      path:'/duomi',
      component:Duomi
    }, 
    {
      path:'/chedai',
      component:Chedai
    }, 
    {
      path:'/chedi',
      component:Chedi
    },
    {
      path:'/fangdi',
      component:Fangdi
    },

    {
      path:'/gongzi',
      component:Gongzuo
    },
    //hh 结束

    {
      path: '/cft',
      component: Cft
    },
    {
      path: '/cateory',
      component: Cateory
    },
    {
      path: '/error',
      component: Error
    },
    {  
      path: '**',
      redirect: '/error'
    }
  ],
  mode:  'history'
})
